<include file="Member:header"/>
<div id="content">
    <div class="crumbs_nav mb">
        <span class="icon">当前位置：</span>
        <a href="/">首页</a>
        &gt; 订单查询
    </div>
    <!--end crumbs_nav-->
    <div class="reg_box">
        <div class="rtitle">
            <h3 class="tith w100">订单查询</h3>
            <div class="tips2">
                请输入下面的任意两项进行订单查询
            </div>
        </div>
        <!--end rtitle-->
        <div class="regcont clearfix">
            <form action="{:U('query')}" method="post" class="reg_form fl" onsubmit="return goQuery();" id="query_form">
                <ul class="reg_ul">
                    <li>
                        <label class="w100">
                            订单号：
                        </label>
                        <input type="text" class="login-input" name="code" />
                    </li>
                    <li>
                        <label class="w100">
                            收货人姓名：
                        </label>
                        <input type="text" class="login-input" name="consignee" />
                    </li>
                    <li>
                        <label class="w100">
                            收货人手机号：
                        </label>
                        <input type="text" class="login-input" name="consignee_phone" />
                    </li>
                </ul>
                <div class="reg_btn w100">
                    <input type="submit" class="sub" name="loginsubmit" value="查 询" />
                </div><!--end reg_btn-->
            </form><!--end reg_form-->
            <div class="fr_dl fl">
                <p class="ts">
                    联系在线客服查询！
                </p>
                <p>
                    <span class="mc bk_element vm">QQ客服：</span>
                    <a href="#" class="vm"><img src="images/testimg/qq.gif" /></a>
                </p>
                <p>
                    <span class="mc bk_element vm">旺旺客服：</span>
                    <a href="#" class="vm"><img src="images/testimg/ww.gif" /></a>
                </p>
            </div><!--end fr_dl-->
        </div>
    </div><!--end reg_box-->
</div>
<script>
	function goQuery(){
		var qmark = 0;
		var input1 = $('#query_form').find('input[name=code]').val();
		if (input1 != '') qmark++;
		var input2 = $('#query_form').find('input[name=consignee_phone]').val();
		if (input2 != '') qmark++;
		var input3 = $('#query_form').find('input[name=consignee]').val();
		if (input3 != '') qmark++;
		
		if(qmark < 2) {
			alert('请输入任意两项进行订单查询 ');
		}else{
			return true;
		}
		return false;
	}
	$(function(){
	  // 文档就绪
	});
</script>
<include file="Layout:footer"/>